﻿# -*- coding:utf-8 -*-
#
# склад


from django.conf.urls.defaults import *


urlpatterns = patterns('',
    
    url('^$', 'sklad.views.main.index', name="index"),
    url(r'^alt/$', 'sklad.views.main.index_alt', name="index_alt"),
    
   
    url(r'^category/(\d+)/colaps/$', 'sklad.views.categories.collaps', name="category_collaps"),
    url(r'^category/(\d+)/expand/$', 'sklad.views.categories.expand', name="category_expand"),
    url(r'^category/add/$', 'sklad.views.categories.create_root', name="category_root_create"),
    url(r'^category/(\d+)/add/$', 'sklad.views.categories.create', name="category_create"),
    url(r'^category/(\d+)/edit/$', 'sklad.views.categories.edit', name="category_edit"),
    url(r'^category/(\d+)/delete/$', 'sklad.views.categories.delete', name="category_delete"),
    url(r'^category/(\d+)/$', 'sklad.views.categories.view', name="category_view"),
     
    url(r'^part/(\d+)/$', 'sklad.views.parts.property', name="part_property"),
    url(r'^part/add/$', 'sklad.views.parts.create', name="part_create"),
    url(r'^part/edit/(\d+)/$', 'sklad.views.parts.edit', name="part_edit"),
    url(r'^part/delete/(\d+)/$', 'sklad.views.parts.delete', name="part_delete"),
    
)


